<extend name="template/base_index" />


<block name="area_header">
	<style type="text/css">
		.selected{
			background-color: #326196;
		}
	</style>
</block>

<block name="area_body">
	{:W('Menus/topbar')}
	<div class="admin-main container-fluid">
		{:W('Menus/left')}
		<div class="admin-main-content">
			{:W('Menus/breadcrumb')}
			<!-- 过滤\查询按钮 -->
				<div class="filter-controls">
					
				</div>
				<!-- 操作按钮 -->
				<div class="btn-controls">
					<a href="{:U('Admin/Sku/index',['p'=>I('get.p',0)])}" class="btn btn-default btn-sm "><i class="fa fa-reply"></i>返回</a>
					<a class="btn btn-primary btn-sm" href="{:U('Admin/Skuvalue/add',array('sku_id'=>$sku_id))}"><i class="fa fa-plus"></i>{:L('BTN_ADD')}</a>
				
				</div>

			<!--<volist name="lang_list" id="vo">-->
				<!--<div class="btn-group">-->

					<!--<a class=" <if condition="$vo['value'] eq $lang">selected</if> btn btn-primary btn-sm"  href="{:U('Admin/Skuvalue/index',array('sku_id'=>$sku_id,'lang'=>$vo['value']))}">{$vo.name}</a>-->
				<!--</div>-->
			<!--</volist>-->
				<table class="table table-striped table table-hover  table-condensed">
					<thead>
						<tr>
							<th>
								<input type="checkbox" class="selectall" onclick="myUtils.selectall(this,'.selectitem');" />
							</th>
							<th>
								默认规格值【翻译后】
							</th>
							<th>
								操作
							</th>
						</tr>
					</thead>
					<tbody>
						<empty name="list">
							<tr>
								<td colspan="3" class="text-center">{:L('NO_DATA')}</td>
							</tr>
							<else/>
							<volist name="list" id="vo">
								<tr>
									<td>
										<input type="checkbox" value="{$vo.id}" name="ids[]" class="selectitem" /></td>
									<td>
										{$vo.name}

										<empty name="vo['_lang_name']">
											<span style="font-size:12px;color: #FF4400">【未翻】</span>

											<else/>
											<if condition="$vo['_lang_name'] eq $vo['name']">
												<span style="font-size:12px;color: #FF4400">【未翻】</span>
												<else/>
												{$vo._lang_name}
											</if>
										</empty>

									</td>
									
									<td>
										
										<a href="{:U('Admin/Skuvalue/edit',array('id'=>$vo['id'],'sku_id'=>$vo['sku_id']))}" class="btn btn-sm btn-default"><i class="fa fa-edit"></i>编辑</a>
										
										<a href="{:U('Admin/Skuvalue/delete',array('id'=>$vo['id']))}" class="btn btn-sm btn-danger ajax-get confirm"><i class="fa fa-trash"></i>删除</a>
									
									</td>
								</tr>

							</volist>
						</empty>
					</tbody>
				</table>
				<div>{$show}</div>
			</div>

		</div>
		<!-- END admin-main-content -->
	</div>
		<!-- END admin-main-->
</block>

<block name="area_footer">

</block>